import request from '@/utils/request'
// 模糊查询
export function getSearchList(data) {
    return request({
        url: '/basic/basic/finByNameOrCode',
        method: 'post',
        data:data
    })
}


export function getSecondViewDate(name) {
    return request({
      url: "/basic/basic/findByTradeCo",
      method: "post",
      data: {
        tradeCo: name,
      },
    });
}

export function getEntPayment(data){
    return request({
        url:'/basic/basic/findEntPayment',
        method:'post',
        data:data
    })
}
export function getEntSupplyChain(id){
    return request({
        url:'/basic/basic/findEntSupplyChain',
        method:'post',
        data:{
            entInfoId:id
        }
    })
}
export function getLawEnforcementInfo(data){
    return request({
        url:'/basic/basic/findLawEnforcementInfo',
        method:'post',
        data:data
    })
}
export function getCommodityInfo(id,date){
    return request({
        url:'/basic/basic/findCommodityInfo',
        method:'post',
        data:{
            entInfoId:id,
            monthOrYear: date
        }
    })
}
export function getEntPaymentTop(year) {
    return request({
        url:'/basic/basic/findEntPaymentTop',
        method:'post',
        data:{
            year:year
        }
    })
}
export function getEntPaymentPage (data){
    return request({
        url:'/basic/basic/findEntPaymentPage',
        method:'post',
        data:data
    })
}
export function getLawEnforcementCount(date){
    return request({
        url:"/basic/basic/findLawEnforcementCount",
        method:'post',
        data:{
            monthOrYear:date
        }
    })
}